package org.cyz.tools.core.assembly;

import javafx.scene.control.Button;
import javafx.scene.control.Control;
import javafx.scene.control.TextField;

/**
 * @author abccy
 * @title: UIRefresh
 * @projectName RedisGUI
 * @description: TODO
 * @date 2020-9-1916:21
 */
public class UIRefresh extends Control {

    public void refreshValue(Control control,String value){
        if(control instanceof TextField){
            ((TextField) control).setText(value);
        }else if(control instanceof Button){
            ((Button)control).setText(value);
        }
    }


}
